/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */
package info.peigen.hotpot.business.product.core.domain;

import info.peigen.hotpot.common.core.domain.DomainObject;
import info.peigen.hotpot.common.core.domain.Image;
import info.peigen.hotpot.common.core.util.IdUtil;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(ProductBrand)</b>
 * 商品品牌
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/11/30
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class ProductBrand extends DomainObject {
    @Builder.Default
    String brandId = IdUtil.id();
    /** 品牌名 */
    @NotEmpty
    String name;
    /** 品牌常用名 - 担心出现王老吉，加多宝这样的事情，冗余一个属性 */
    String favorName;
    /** logo */
    Image  logo;
    /** 故事 */
    String story;
    /** 关联品牌 - JSON */
    String relation;
    /** 是否为自营品牌 */
    @Builder.Default
    Boolean self = Boolean.FALSE;
    /** 操作员 */
    String operatorId;
}
